/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.zhongyi.service.impl;



import io.renren.modules.zhongyi.dao.ZYUserDao;
import io.renren.modules.zhongyi.entity.ZYWeChatUserEntity;
import io.renren.modules.zhongyi.service.ZYUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ZYUserServiceImpl implements ZYUserService {

	@Autowired
	ZYUserDao ZYUserDao;

	@Override
	public void wechatRegisterData(ZYWeChatUserEntity userEntity) {
		ZYUserDao.registerWeChatUserData(userEntity);
	}

	@Override
	public ZYWeChatUserEntity getUserInfoData(String openId) {
		return ZYUserDao.getUserInfoData(openId);
	}

	@Override
	public List getUserCollectionCourse(String openId) {
		return ZYUserDao.getUserCollectionCourse(openId);
	}
}
